<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="menu/swimbi.css" />
<link rel="stylesheet" href="position/positionTable.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>JT HR</title>
<style>
.forma {
	width: 50%;
	margin: 0 auto;
}

.edit {
	background:
		url();
	width: 32px;
	height: 32px;
	border: none;
}

.edit:hover {
	opacity: 0.8;
}

.edit:active {
	opacity: 0.6;
}

.view {
	background:
		url();
	width: 32px;
	height: 32px;
	border: none;
}

.view:hover {
	opacity: 0.5;
}

.view:active {
	opacity: 0.3;
}

.delete {
	background:
		url();
	width: 26px;
	height: 32px;
	border: none;
	margin-left: 5px;
}

.delete:hover {
	opacity: 0.8;
}

.delete:active {
	opacity: 0.6;
}

tr:hover {
	background-color: #8b2d4b;
}
</style>
<body>
	<div id="main">
		<%@ include file="header.jsp"%>
		<%@ include file="menu.jsp"%>

		<div id="site_content">
			<div id="table_container">
				<div class="CSSTable">
					<table>
							<tr>
								<td>Interviewer(s)</td>
								<td>Date</td>
								<td>Candidate</td>
								<td>Operations</td>
							</tr>
							<c:forEach items="${list}" var="inter">
								<tr>
									<td><c:out value="${inter.interviewers}"></c:out></td>
									<td><c:out value="${inter.date}" /></td>
									<td>${candidate.firstName} ${candidate.lastName}</td>
									<td>
										<div style="text-align:center;">
										<form action="viewinterview" method="POST">
											<input type="hidden" name="cand_id" value="<c:out value="${candidate.id}" />"/>
											<input type="hidden" name="inter_id" value="<c:out value="${inter.id}" />"/>
											<input type="submit" class="view" name="viewInterview" value=""  title="View" />
											<!-- <input type="submit" class="edit" name="editInterview" value="" title="Edit"> -->
											<input type="submit" class="delete" name="deleteInterview" value="" title="Delete" onclick="return confirm('Are you sure you want to delete?')">
										</form>
										</div>
									</td>
								</tr>
							</c:forEach>
						</table>
				</div>
			</div>
		</div>
	</div>
</body>
</html>